//
//  SSPListData.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/11/10.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "SSPListData.h"

@implementation SSPListData

- (BOOL)isPraise
{
    return [self.ifPraise isEqualToString:@"1"];
}

/// 属性map
+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper {
    return @{
              @"circleID":@"circle_id",
              @"userID":@"user_id",
              @"areaID":@"area_id",
              @"tContent":@"content",
              @"addTime":@"addtime",
              @"ifPraise":@"if_praise",
             };
}

/// 属性名 生成 class
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    
    return @{
             @"user":[UserListData class],
             };
}

@end
